package po;

public class loadCartridge {


    public static boolean loadCartridge(String color) {
        boolean loadCartridgeOk = false;
        System.out.println("放入的墨盒为：" + color);
        if (color.equals("黑白") || color.equals("彩色")) {
            System.out.println("装载墨盒");
            loadCartridgeOk = true;
        } else {
            System.out.println("不支持此种类型的墨盒");
            loadCartridgeOk = false;
        }

        return loadCartridgeOk;
    }
}
